﻿using System;

namespace ElectronicCommerce.Framework.Caching
{
    /// <summary>
    /// Interface Cache Item
    /// </summary>
    public interface ICacheItem
    {
        /// <summary>
        /// Cache Key
        /// </summary>
        string Key { get; }

        /// <summary>
        /// Create DateTime 
        /// </summary>
        DateTime Created { get; }

        /// <summary>
        /// Last Activity DateTime
        /// </summary>
        DateTime LastActivity { get; }

        /// <summary>
        /// Frequency
        /// </summary>
        int Frequency { get; }

        /// <summary>
        /// Object
        /// </summary>
        object Object { get; }

    }
}
